﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CustomControlPractice._Default" %>

<%@ Register Assembly="CustomControlPractice" Namespace="CustomControlPractice.Controls"
    TagPrefix="cc1" %>
<%@ Register Assembly="CustomControlPractice" Namespace="CustomControlPractice" TagPrefix="customcontrol" %>

<%@ Register assembly="CustomControlPractice" namespace="CustomControlPractice.CompositeControl" tagprefix="cc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .DivStyle
        {
        	background-color:Green;
        	margin:0;
        	padding:0;
        	border:0;
        }
        .select
        {
        	background-color:Yellow;
        	height:38px;
        	}
    </style>
    <script type="text/javascript">
        var gridViewControlID = "<%=customGridView1.ClientID %>";
        function Close() {
            parent.CloseModalDialog();
        }
    </script>
    <script src="js/jquery-1.4.3.min.js" type="text/javascript"></script>
    <script src="js/Default.js" type="text/javascript"></script>
    <link href="css/Default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    
    <form id="form1" runat="server">
    <div>
        <customcontrol:StylishTextBox ID="stylishTextBox" runat="server" Width="300px" Height="23px" />
    </div>
    <div style="margin-top:50px;">
        <asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem>Item1</asp:ListItem>
            <asp:ListItem>Item2</asp:ListItem>
        </asp:DropDownList>
        <select class="select" id="Select1">
            <option>Item1</option>
            <option>Item2</option>
            <option>Item3</option>
        </select>
    </div>
    <div>
        <asp:GridView ID="GridView1" runat="server" ShowHeader="true" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="Column1" HeaderText="Column1" />
                <asp:BoundField DataField="Column2" HeaderText="Column2" />
            </Columns>
            <EmptyDataTemplate>
                <asp:Button ID="Button1" runat="server" Text="Button" />
            </EmptyDataTemplate>
        </asp:GridView>
        <cc1:CustomGridView ID="customGridView1" runat="server" AlwaysShowHeader="True" AutoGenerateColumns="False" 
            onrowcreated="customGridView1_RowCreated" 
            onrowdatabound="customGridView1_RowDataBound">
            <Columns>
                <asp:TemplateField ItemStyle-Width="0" ControlStyle-Width="0">
                    <ItemTemplate>
                        <input id="hiddenField" type="hidden" value="<%#Eval("Indicator") %>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Column1" HeaderText="Column1" />
                <asp:BoundField DataField="Column2" HeaderText="Column2" />
            </Columns>
        </cc1:CustomGridView>
    </div>
    <div>
        <cc2:SimpleCompositeControl ID="SimpleCompositeControl1" runat="server" />
    </div>
    <div>
        <asp:Button ID="action" runat="server" Text="Action" OnClick="OnActionClick" />
        <input id="cancel" type="button" value="Cancel" onclick="Close();" />
    </div>
    </form>
</body>
</html>
